home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…tion Library 2 (Reseller)
/
Apple R&P Lib Reseller v2.0.iso
/
3-Demos
/
HyperCard Demos
/
HyperCard In Education
/
Sort
/
card_2991.txt
< prev
next >
Wrap
Text File
|
1989-07-14
|
12KB
|
614 lines
-- card: 2991 from stack: in
-- bmap block id: 0
-- flags: 0000
-- background id: 2811
-- name:
-- part 1 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=62 right=78 bottom=192
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 10
-- part 2 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=86 right=103 bottom=191
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 9
-- part 3 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=110 right=127 bottom=191
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 8
-- part 4 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=133 right=150 bottom=190
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 7
-- part 5 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=156 right=172 bottom=191
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 6
-- part 6 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=178 right=196 bottom=190
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 5
-- part 7 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=203 right=220 bottom=189
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 4
-- part 8 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=228 right=244 bottom=190
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 3
-- part 9 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=251 right=268 bottom=190
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 2
-- part 10 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=149 top=274 right=291 bottom=191
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: field 1
-- part 11 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=118 top=298 right=320 bottom=218
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Randomize
----- HyperTalk script -----
on mouseUp
play "boing" a d c
repeat with x=1 to 10
put the random of 899 into holder
put holder+100 into card field x
end repeat
end mouseUp
-- part 12 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=62 right=80 bottom=308
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 10
-- part 13 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=86 right=103 bottom=309
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 9
-- part 14 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=110 right=127 bottom=309
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 8
-- part 15 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=133 right=150 bottom=309
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 7
-- part 16 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=156 right=172 bottom=309
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 6
-- part 17 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=178 right=196 bottom=310
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 5
-- part 18 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=203 right=220 bottom=310
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 4
-- part 19 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=227 right=244 bottom=311
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 3
-- part 20 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=251 right=268 bottom=311
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 2
-- part 21 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=273 top=274 right=291 bottom=313
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: sort 1
-- part 22 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=242 top=298 right=320 bottom=342
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Sort
----- HyperTalk script -----
on mouseUp
play "boing" a b c a d
repeat with t=1 to 10
put card field t into card field (t+20)
end repeat
repeat with h=11 to 20
put 0 into card field h
end repeat
repeat with x=1 to 10
put card field x into holder
repeat with y=1 to 10
if card field y < holder and card field y > card field (x+10) then put card field y into holder
if card field y=holder then put y into marker
end repeat
put holder into card field (x+10)
put 1000 into card field marker
end repeat
repeat with r= 21 to 30
put card field r into card field (r-20)
delete line 1 of card field r
end repeat
end mouseUp
-- part 23 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=62 right=80 bottom=408
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 24 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=86 right=105 bottom=407
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 25 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=110 right=127 bottom=404
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 26 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=133 right=150 bottom=402
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 27 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=156 right=173 bottom=408
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 28 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=178 right=195 bottom=407
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 29 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=203 right=222 bottom=408
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 30 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=227 right=245 bottom=406
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 31 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=251 right=271 bottom=417
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 32 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=349 top=274 right=291 bottom=408
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 34 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=5 top=266 right=288 bottom=105
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show Script
----- HyperTalk script -----
on mouseUp
edit script of card button "Sort"
end mouseUp
-- part 35 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=16 top=319 right=340 bottom=76
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return
----- HyperTalk script -----
on mouseUp
global returncard
go to returncard
end mouseUp
-- part contents for card part 1
----- text -----
209
-- part contents for card part 2
----- text -----
152
-- part contents for card part 3
----- text -----
997
-- part contents for card part 4
----- text -----
640
-- part contents for card part 5
----- text -----
417
-- part contents for card part 6
----- text -----
536
-- part contents for card part 7
----- text -----
607
-- part contents for card part 8
----- text -----
395
-- part contents for card part 9
----- text -----
209
-- part contents for card part 10
----- text -----
342
-- part contents for card part 21
----- text -----
997
-- part contents for card part 12
----- text -----
152
-- part contents for card part 13
----- text -----
209
-- part contents for card part 14
----- text -----
209
-- part contents for card part 15
----- text -----
342
-- part contents for card part 16
----- text -----
395
-- part contents for card part 17
----- text -----
417
-- part contents for card part 18
----- text -----
536
-- part contents for card part 19
----- text -----
607
-- part contents for card part 20
----- text -----
640